/******************************************************************************* 
 * Copyright (c) 2008 xored software, Inc.  
 * 
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Eclipse Public License v1.0 
 * which accompanies this distribution, and is available at 
 * http://www.eclipse.org/legal/epl-v10.html  
 * 
 * Contributors: 
 *     xored software, Inc. - initial API and Implementation (Yuri Strot) 
 *******************************************************************************/
package com.xored.glance.core;

import org.eclipse.swt.custom.StyleRange;

/**
 * @author Yuri Strot
 * 
 */
public class StyleString {

	public StyleString(String text) {
		this(text, null);
	}

	public StyleString(StyleRange style) {
		this(null, style);
	}

	public StyleString(String text, StyleRange style) {
		this.text = text;
		this.style = style;
	}

	/**
	 * @return the style
	 */
	public StyleRange getStyle() {
		return style;
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}

	private String text;
	private StyleRange style;

}
